﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Arim.S4.Client.Base.Dto
{
    public class IronBagDto : EntityDto
    {
        /// <summary>
        /// 获取或设置铁次号。
        /// </summary>
        [Display(Name = "铁次号")]
        public string HotNo { get; set; }

        /// <summary>
        /// 获取或设置铁包号(印在铁包上的编号)。
        /// </summary>
        [Display(Name = "铁包号")]
        public string BagNo { get; set; }

        /// <summary>
        /// 获取或设置铁包的实际重量。
        /// </summary>
        [Display(Name = "铁包重量")]
        public float Weight { get; set; }

        /// <summary>
        /// 获取或设置铁包的到达时间。
        /// </summary>
        [Display(Name = "到达时间")]
        public DateTime ArrivalTime { get; set; }

        [Display(AutoGenerateField = false)]
        public IList<IronBagMergeDto> Merges { get; set; }
    }

    public class IronBagMergeDto : EntityDto
    {
        /// <summary>
        /// 获取或设置在原表中的IronId。
        /// </summary>
        public long IronId { get; set; }

        /// <summary>
        /// 获取或设置铁包次号。
        /// </summary>
        [Display(Name = "铁次号")]
        public string HotNo { get; set; }

        /// <summary>
        /// 获取或设置被使用的炉次号。
        /// </summary>
        [Display(Name = "炉次号")]
        public string HeatNo { get; set; }

        [Display(Name = "使用重量")]
        public float? UsedWeight { get; set; }

        public IronBagDto IronBag { get; set; }

        [Display(Name = "使用时间")]
        public DateTime? UsedTime { get; set; }

        public DateTime CreationTime { get; set; }
    }
}
